//////
///// GarryWare Prime
//// Shared Factual Variables
///

DeriveGamemode( "fretta" )
IncludePlayerClasses()

-- Defining Fretta variables!
do
	GM.Name		= "GarryWare"
	GM.Author	= "Hurricaaane (Ha3 Team)"
	GM.Email	= ""
	GM.Website	= ""
	GM.Help	= 
[[Rules :
- Do what she says
- Have fun, this is not a game where you have to kill everyone
By : Hurricaaane (Ha3 Team)

Music by The Hamster Alliance ( http://www.hamsteralliance.com/ ).
Special thanks to Kilburn for developing the modular shape of the gamemode.]]
	
	
	GM.TeamBased		= true
	GM.AllowAutoTeam	= true
	GM.AllowSpectating	= true
	GM.SelectClass		= false
	GM.SecondsBetweenTeamSwitches	= 3
	GM.GameLength					= 9.0 + 47.0 / 60.0 -- Unit is minutes
	
	GM.NoPlayerSuicide			= false
	GM.NoPlayerDamage			= true
	GM.NoPlayerSelfDamage		= true
	GM.NoPlayerTeamDamage		= true
	GM.NoPlayerPlayerDamage		= true
	GM.NoNonPlayerPlayerDamage	= true
	
	GM.TakeFragOnSuicide		= false
	
	GM.MaximumDeathLength		= 1			-- Death length > this => Rez (No 0)
	GM.MinimumDeathLength		= 1			-- Death Length
	GM.NoAutomaticSpawning		= false	-- Other system to spawn
	GM.ForceJoinBalancedTeams	= false	-- Fail balance system (DO NOT USE)
	
	GM.SelectColor				= true		-- Players can use Fretta color
	
	-- Useless variables
	do
		GM.RoundBased = false				-- CS-like Rounds
		GM.RoundLength = (9)
		GM.RoundEndsWhenOneTeamAlive = false
		
	end
	
end

TEAM_HUMANS = 1

function GM:CreateTeams()
	team.SetUp(			TEAM_HUMANS, "Players", Color(235, 177, 20), true )
	team.SetSpawnPoint(	TEAM_HUMANS, "info_player_start" )
	team.SetClass(		TEAM_HUMANS, {"Default"} )
	
	team.SetUp( TEAM_SPECTATOR, "Spectators", Color(200, 200, 200), true )
	team.SetSpawnPoint( TEAM_SPECTATOR, "info_player_start" )
	team.SetClass( TEAM_SPECTATOR, {"Spectator"} )
	
end
